package com.millstein.mapper;

import com.millstein.model.ProductDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.millstein.request.LockProductItemRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author millstein
 * @since 2021-09-16
 */
public interface ProductMapper extends BaseMapper<ProductDO> {

    /**
     * 批量修改商品的锁定数量
     * @param products 锁定的信息
     * @return
     */
    int updateBatchLockState(@Param("products") List<LockProductItemRequest> products);
}
